function enviarData(id){
    $("#message_revisor")[0].innerHTML="<img src='media/ani-rebuild.gif'/>";

    $.ajax({
        type: "GET",
        url: "index.php?controller=revisor&action=enviarRevisorAjax&id="+id,
        data: $("#enviarDataForm").serializeArray(),
        success: showMessageRevisor,
        error: err
    })
}

function showMessageRevisor(data){
    $("#message_revisor")[0].innerHTML=data;
    $(this).delay(5000,function(){
        $("#message_revisor").hide();
    });
}

function err(xhr, reason, ex){
    $("#message_revisor").text(reason);
}